/**
  ******************************************************************************
  * @file    peripheral.h
  * @author  MCU Application Team
  * @Version V1.0.0
  * @Date    2023-12-01
  * @brief   Peripheral Init 
  ******************************************************************************
**/

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __PERIPHERAL_H
#define __PERIPHERAL_H

#ifdef __cplusplus
extern "C" {
#endif

	
extern COMP_HandleTypeDef  				hcomp1;
extern ADC_HandleTypeDef 				hadc;
extern TIM_HandleTypeDef               	Tim1Handle,Tim16Handle,Tim17Handle;
extern ADC_HandleTypeDef             	AdcHandle;
extern ADC_ChannelConfTypeDef        	sConfig;
extern IWDG_HandleTypeDef 					IwdgHandle;

extern uint16_t AdcData[];

void MC_6StepCmp_IOInit(void);
void MC_6StepCmp_CompInit(void)  ;
void MC_6StepCmp_ADC_Init(void);
void MC_6StepCmp_PWM_Init(void);
void ZCPComp_Init(void)  ;
void OCComp_Init(void)  ;

void wdg_Init(void);
void clear_Wdg(void);
void delay_ms(uint16_t delay_ms);
void delay_s(uint16_t delay_s);

void TIM_Channel_Cmd(TIM_TypeDef *htim, uint32_t Channel, uint32_t ChannelState);
void SystemClock_Config(void);

#endif
